package com.rmt.www.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.rmt.www.dao.UserDao;
import com.rmt.www.service.AdminManageChangeService;
import com.rmt.www.service.AdminManageProjectService;
import com.rmt.www.service.AdminManageUserService;
import com.rmt.www.vo.Project;
import com.rmt.www.vo.User;



public class CreateBaselineAction extends ActionSupport{
	public int pid;
	public AdminManageChangeService adminManageChangeService;
	public AdminManageProjectService adminManageProjectService;
	public List<Project> projectList;
	public String execute(){
		adminManageChangeService.createBaseline(pid);
		projectList=adminManageProjectService.getProjectList();
		return "success";
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public AdminManageChangeService getAdminManageChangeService() {
		return adminManageChangeService;
	}

	public void setAdminManageChangeService(
			AdminManageChangeService adminManageChangeService) {
		this.adminManageChangeService = adminManageChangeService;
	}

	public AdminManageProjectService getAdminManageProjectService() {
		return adminManageProjectService;
	}

	public void setAdminManageProjectService(
			AdminManageProjectService adminManageProjectService) {
		this.adminManageProjectService = adminManageProjectService;
	}

	public List<Project> getProjectList() {
		return projectList;
	}

	public void setProjectList(List<Project> projectList) {
		this.projectList = projectList;
	}
}
